home *** CD-ROM | disk | FTP | other *** search
/ .net (Poland) 2000 September / Magazyn_Net_09_2000 (CDB).iso / offline / R1 / help / getcleverwin / registrier_win.asp < prev    next >
Encoding:
Text File  |  2000-10-12  |  8.0 KB  |  139 lines

  1.  
  2. <%'<?
  3. '
  4. 'include ("../lib/config/global_config.php3");
  5. 'include ("../lib/phpDB/connect.php3");
  6. 'include ("../lib/phpDB/db.php3");
  7. 'include ("../lib/helper.php3");
  8.  
  9. '$db=new db_connect;
  10. '$db->openDB($global_DBServer,$global_DBUser,$global_DBPassword);
  11. '$db->setDatabase($global_DBName);
  12.  
  13. 'if ($DBRUN==1):
  14.  
  15. '    /*
  16. '    **    Abfrage der Registrierungdaten
  17. '    */
  18. '    if ($firstname=="") { $errormsg="Please enter your first name."; $error_first=1; }
  19. '    elseif ($lastname=="") { $errormsg="* Please enter your last name."; $error_last=1; }
  20. '    elseif ($email=="" || !ereg("^([a-zA-Z0-9\.\_\-]+)@([a-zA-Z0-9\.\-]+\.[A-Za-z][A-Za-z]+)$", $email)) { $errormsg = "* Please check your email adress.\n e.g: name@domain.com"; $error_email=1; }
  21. '    elseif (checkBirth($myDay,$myMonth,$myYear) != 1) { echo "<META HTTP-EQUIV='Refresh' CONTENT=0;URL=too_young.asp>"; }
  22. '    elseif ($street=="") { $errormsg="Please enter a street."; $error_street = 1; }
  23. '    elseif ($zip=="" || $city=="") { $errormsg="* Please fill out the zip code and City field.";  $error_zip = 1; }
  24. '    elseif ($country==0) { $errormsg="Please choose a land."; }
  25. '    else {
  26. '            /* Birthdate zusammensetzen */
  27. '            $birthdate = "$myYear-$myMonth-$myDay 00:00:00";
  28. '            
  29. '            /* CreationDate */
  30. '            $creationdate = date("Y-m-d H:i:s");
  31. '
  32. '            $dbquery=new db_query;
  33. '            $dbquery->db_connect($db);
  34. '            $insert = "INSERT INTO gewinnspiel_user (first, last, email, birthdate, phone, street, zip, city, country, brand, werbung, pictureid, creationdate, gender, smoker, domain) VALUES ('$firstname', '$lastname', '$email', '$birthdate', '$phone', '$street' ,'$zip', '$city', '$country', '$brand', '$werbung', '$bildid', '$creationdate', '$gender', '$smoker', '1')";
  35. '            $dbquery->sendQuery($insert);
  36. '            echo "<META HTTP-EQUIV='Refresh' CONTENT=0;URL=bestaet_win.php3>";
  37. '        }
  38. 'endif;
  39. '
  40. '?>
  41. %>
  42. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  43. <html>
  44. <head>
  45. <meta http-equiv="content-type" content="text/html; charset=ISO-8859-2">
  46.     <title><?echo$global_title?></title>
  47. <link rel="stylesheet" href="../main.css">
  48. </head>
  49. <body>
  50. <img src="/cgi-bin/ivw/CP<? echo $PHP_SELF;?>" width=1 height=1><br>
  51. <img src="gfx/regist.gif" width=135 height=29 alt="" border="0"><br><br>
  52. <table width="370" border="0" cellspacing="0" cellpadding="0">
  53. <tr><td colspan="2"><h1>Rules of participation:</h1>
  54. <span>Everyone has the right to participate in the draw. Void where prohibited or 
  55. restricted by law or regulation. Employees of Reemtsma and their immediate family 
  56. members, regardless of where they live, or persons who reside in the same household, 
  57. whether related or not, are not eligible to play. In order to particepate you must be at least 18 years old. Each person can participate only once.<br><br>
  58. All entrants agree that their addresses will be stored in accordance with the data 
  59. protection law. Winners will be selected by a random draw. The draw will be performed 
  60. electronically through a randomizer program. Reemtsma reserves the right in its sole 
  61. discretion to suspend or terminate the sweepstakes. 
  62. </span><br><br>
  63. <a name="eingaben"><span><i>Fields marked with * are optional, all others have to be completed in order to be able to participate.</i></span></a><br>
  64. <h4><? if ($errormsg) { echo $errormsg; } ?></h4>
  65. </td>
  66. </tr>
  67. <form action="registrier_win.asp" method="GET" enctype="application/x-www-form-urlencoded" name="Register2Form">
  68. <input type=hidden name="DBRUN" value="1">
  69. <input type=hidden name="bildid" value="<? echo $bildid; ?>">
  70. <input type=hidden name="lwort" value="<? echo $lwort; ?>">
  71. <input type=hidden name="version" value="<? echo $version;?>">
  72. <tr>
  73.     <td><font>first name:</font></td>
  74.     <td><input type="Text" name="firstname" size="15" maxlength="40" VALUE="<? echo $firstname;?>"></td>
  75. </tr>
  76. <tr>
  77.     <td><font>last name:</font></td>
  78.     <td><input type="Text" name="lastname" size="15" maxlength="40" VALUE="<? echo $lastname; ?>"></td>
  79. </tr>
  80. <tr>
  81.     <td><font>email:</font></td>
  82.     <td><input type="Text" name="email" size="15" maxlength="40" VALUE="<? echo $email; ?>"></td>
  83. </tr>
  84. <tr>
  85.     <td><font>birth date:</font></td>
  86.     <td><input type="Text" name="myDay" size="2" maxlength="2" value="<? echo $myDay; ?>"><input type="Text" name="myMonth" size="2" maxlength="2" value="<? echo $myMonth; ?>"><input type="Text" name="myYear" size="4" maxlength="4" value="<? echo $myYear; ?>"></td>
  87. </tr>
  88. <tr>
  89.     <td><font>gender:</font></td>
  90.     <td><input type="Radio" name="gender" value="female" checked> <font>female</font><input type="Radio" name="gender" value="male"> <font>male</font></td>
  91. </tr>
  92. <tr>
  93.     <td><font>street:</font></td>
  94.     <td><input type="Text" name="street" size="15" maxlength="40" value="<? echo $street; ?>"></td>
  95. </tr>
  96. <tr>
  97.     <td><font>phone*:</font></td>
  98.     <td ><input type="Text" name="phone" size="15" maxlength="40"></td>
  99. </tr>
  100. <tr>
  101.     <td><font>zip / city:</font></td>
  102.     <td><input type="Text" name="zip" size="5" maxlength="15" VALUE="<? echo $zip; ?>"><input type="Text" name="city" value="<? echo $city; ?>" size="10" maxlength="40"></td>
  103. </tr>
  104. <tr>
  105.     <td><font>country:</font></td>
  106.     <td><select name="country">
  107.                 <option value=0>Please choose</option>
  108.                 <option value='1'>ANDORRA</option><option value='2'>AUSTRIA</option><option value='3'>BELGIUM</option><option value='4'>BOSNIA AND HERZEGOWINA</option><option value='5'>BULGARIA</option><option value='6'>CROATIA</option><option value='7'>CYPRUS</option><option value='8'>CZECH REPUBLIC</option><option value='9'>DENMARK</option><option value='10'>ESTONIA</option><option value='11'>FINLAND</option><option value='12'>FRANCE</option><option value='13'>GERMANY</option><option value='14'>GIBRALTAR</option><option value='15'>GREECE</option><option value='16'>GREENLAND</option><option value='17'>HUNGARY</option><option value='18'>ICELAND</option><option value='19'>IRELAND</option><option value='20'>ISRAEL</option><option value='21'>ITALY</option><option value='22'>LATVIA</option><option value='23'>LIECHTENSTEIN</option><option value='24'>LITHUANIA</option><option value='25'>LUXEMBOURG</option><option value='26'>MACEDONIA</option><option value='27'>MOLDOVA</option><option value='28'>MONACO</option><option value='29'>MONTSERRAT</option><option value='30'>NETHERLANDS</option><option value='31'>NORWAY</option><option value='46'>other</option><option value='99'>others</option><option value='32'>POLAND</option><option value='33'>PORTUGAL</option><option value='34'>ROMANIA</option><option value='35'>SAN MARINO</option><option value='36'>SLOVAKIA</option><option value='37'>SLOVENIA</option><option value='38'>SPAIN</option><option value='39'>SWEDEN</option><option value='40'>SWITZERLAND</option><option value='41'>TURKEY</option><option value='42'>UKRAINE</option><option value='43'>UNITED KINGDOM</option><option value='44'>VATICAN CITY STATE</option><option value='45'>YUGOSLAVIA</option>                                                       
  109.         </select></td>
  110. </tr>
  111. <tr>
  112.     <td valign="top"><font>Smoker/<br>Brand*:</font></td>
  113.     <td><input type="Radio" name="smoker" value="1" checked> <font>Yes</font><input type="Radio" name="smoker" value="0"> <font>No</font></td>
  114. </tr>
  115. <tr>
  116.     <td valign="top"><font>Brand (optional)</font></td>
  117.     <td><input type="Text" name="brand" value="<? echo $brand; ?>" size="15" maxlength="40"></td>
  118. </tr>
  119. <tr>
  120. <td colspan=2 align="center"><img src="../gfx/blank.gif" width=1 height=40 alt="" border="0"><input type="Submit" name="submit" value="participate">   <input type="reset" name="reset" value="delete entrys"></td>
  121. </tr>
  122. <tr>
  123. <td colspan="3"><br><input type="Radio" name="werbung" value="1" checked> <font>I agree to allow R1 to save the
  124. information that I have entered, and to use it in the future to inform me of events or promotions 
  125. and/or send me trial products.</font><br><br></td>
  126. </tr>
  127. <tr>
  128. <td colspan="3"><input type="Radio" name="werbung" value="0"> <font>I do not agree with 
  129. the above! Ok, then please click on this field and your address will be deleted from R1<sup><span>®</span></sup>'s files.
  130. </font></td>
  131. </tr>
  132. </form>
  133. </table>
  134. <br>
  135. </body>
  136. </html>
  137.  
  138.  
  139.